﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using chaoshi.model;
using chaoshi.BLL;

namespace chaoshi
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btntuichu_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnnext_Click(object sender, EventArgs e)
        {
            string name = txtname.Text;
            string pass = txtpass.Text;

            Modelsevers model = new Modelsevers();

            BLLlianjie lj = new BLLlianjie();
            if (null != lj.userlogin(name, pass))
            {
                MessageBox.Show("登录成功");
            }
            else
            {
                MessageBox.Show("登录失败");
            }
        }
    }
}
